import { _triangle } from './triangle.js';
import { _square } from './square.js';
import { _cube } from './cube.js';
import { _ball } from './ball.js'
// import { _demo } from './demo.js';
import { _line } from './line.js'

const shapeMap = {
    default: _triangle,
    glTriangle: _triangle,
    glSquare: _square,
    glCube: _cube,
    glBall: _ball,
    glLine: _line
    //   glDemo:_demo
}

export const mapShapeFn = (t) => {
    return shapeMap[t]  //|| shapeMap['default']
}